package com.woniuxy.dudugua.mapper;

import com.woniuxy.dudugua.entity.Store;
import com.woniuxy.dudugua.entity.StoreExample;

import java.util.HashMap;
import java.util.List;

import com.woniuxy.dudugua.util.view.StoreNavBar;
import org.apache.ibatis.annotations.Param;

public interface StoreMapper {
    long countByExample(StoreExample example);

    int deleteByExample(StoreExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Store record);

    int insertSelective(Store record);

    List<Store> selectByExample(StoreExample example);

    Store selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Store record, @Param("example") StoreExample example);

    int updateByExample(@Param("record") Store record, @Param("example") StoreExample example);

    int updateByPrimaryKeySelective(Store record);

    int updateByPrimaryKey(Store record);

    List<StoreNavBar> getStoreHotProduct(int sid,int number);

    List<StoreNavBar> getStoreProductByPage(int start,int end,int sid);

    List<StoreNavBar> getAIFaceProductByExmpel(HashMap<String,Object> map);
}